package com.ruoyi.bl.domain;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 bl_goods
 *
 * @author ruoyi
 * @date 2024-11-21
 */
public class BlGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private BlGoodsCategory blGoodsCategory;

    private SysDept sysDept;

    private BlSuppliers blSuppliers;

    /** $column.columnComment */
    private Long goodsId;

    /** 部门id */
    private Long deptId;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** $column.columnComment */
    //@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long catId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String goodsSn;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 点击次数 */
    //@Excel(name = "点击次数")
    private Integer clickCount;

    /** 销售单位0份1重量 */
    @Excel(name = "销售单位")
    private Integer salesUnit;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private BigDecimal goodsUprice;

    /** 商品备注 */
    //@Excel(name = "商品备注")
    private String goodsRemark;

    /** 商品内容描述 */
    //@Excel(name = "商品内容描述")
    private String goodsContent;

    /** 商品封面图片 */
    //@Excel(name = "商品封面图片")
    private String originalImg;

    /** 商品轮播图 */
    //@Excel(name = "商品轮播图")
    private String carouselImg;

    /** 是否上架 */
    @Excel(name = "是否上架")
    private Integer isOnSale;

    /** 排序 */
    //@Excel(name = "排序")
    private Integer sort;

    /** 是否新品 */
    //@Excel(name = "是否新品")
    private Integer isNew;

    /** 是否热门 */
    //@Excel(name = "是否热门")
    private Long isHot;

    /** 包装单位 */
    //@Excel(name = "包装单位")
    private String packagingUnit;

    /** 商品系数 */
    @Excel(name = "商品系数")
    private BigDecimal ratio;

    public BlGoodsCategory getBlGoodsCategory() {
        return blGoodsCategory;
    }

    public void setBlGoodsCategory(BlGoodsCategory blGoodsCategory) {
        this.blGoodsCategory = blGoodsCategory;
    }

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public BlSuppliers getBlSuppliers() {
        return blSuppliers;
    }

    public void setBlSuppliers(BlSuppliers blSuppliers) {
        this.blSuppliers = blSuppliers;
    }

    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setSupplierId(Long supplierId)
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId()
    {
        return supplierId;
    }
    public void setCatId(Long catId)
    {
        this.catId = catId;
    }

    public Long getCatId()
    {
        return catId;
    }
    public void setGoodsSn(String goodsSn)
    {
        this.goodsSn = goodsSn;
    }

    public String getGoodsSn()
    {
        return goodsSn;
    }
    public void setGoodsName(String goodsName)
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName()
    {
        return goodsName;
    }
    public void setClickCount(Integer clickCount)
    {
        this.clickCount = clickCount;
    }

    public Integer getClickCount()
    {
        return clickCount;
    }
    public void setGoodsUprice(BigDecimal goodsUprice)
    {
        this.goodsUprice = goodsUprice;
    }

    public Integer getSalesUnit() {
        return salesUnit;
    }

    public void setSalesUnit(Integer salesUnit) {
        this.salesUnit = salesUnit;
    }

    public BigDecimal getGoodsUprice()
    {
        return goodsUprice;
    }
    public void setGoodsRemark(String goodsRemark)
    {
        this.goodsRemark = goodsRemark;
    }

    public String getGoodsRemark()
    {
        return goodsRemark;
    }
    public void setGoodsContent(String goodsContent)
    {
        this.goodsContent = goodsContent;
    }

    public String getGoodsContent()
    {
        return goodsContent;
    }
    public void setOriginalImg(String originalImg)
    {
        this.originalImg = originalImg;
    }

    public String getOriginalImg()
    {
        return originalImg;
    }
    public void setCarouselImg(String carouselImg)
    {
        this.carouselImg = carouselImg;
    }

    public String getCarouselImg()
    {
        return carouselImg;
    }
    public void setIsOnSale(Integer isOnSale)
    {
        this.isOnSale = isOnSale;
    }

    public Integer getIsOnSale()
    {
        return isOnSale;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setIsNew(Integer isNew)
    {
        this.isNew = isNew;
    }

    public Integer getIsNew()
    {
        return isNew;
    }
    public void setIsHot(Long isHot)
    {
        this.isHot = isHot;
    }

    public Long getIsHot()
    {
        return isHot;
    }
    public void setPackagingUnit(String packagingUnit)
    {
        this.packagingUnit = packagingUnit;
    }

    public String getPackagingUnit()
    {
        return packagingUnit;
    }
    public void setRatio(BigDecimal ratio)
    {
        this.ratio = ratio;
    }

    public BigDecimal getRatio()
    {
        return ratio;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("goodsId", getGoodsId())
                .append("deptId", getDeptId())
                .append("supplierId", getSupplierId())
                .append("catId", getCatId())
                .append("goodsSn", getGoodsSn())
                .append("goodsName", getGoodsName())
                .append("clickCount", getClickCount())
                .append("salesUnit", getSalesUnit())
                .append("goodsUprice", getGoodsUprice())
                .append("goodsRemark", getGoodsRemark())
                .append("goodsContent", getGoodsContent())
                .append("originalImg", getOriginalImg())
                .append("carouselImg", getCarouselImg())
                .append("isOnSale", getIsOnSale())
                .append("sort", getSort())
                .append("isNew", getIsNew())
                .append("isHot", getIsHot())
                .append("packagingUnit", getPackagingUnit())
                .append("ratio", getRatio())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
